package yang.VirtualMachine.chapter9.classStruct.constantPool;

import java.io.IOException;
import java.io.InputStream;

import yang.VirtualMachine.chapter9.ClassUtil;

/**
 * Float
 * u1 tag;u4 bytes
 * @author xinxin
 */
public class Con_FloatProcesser implements PoolValue {
	
	private int value;

	@Override
	public void process(InputStream input) throws IOException {
		value = (int) ClassUtil.getNumByStream(input, 4);
	}

	@Override
	public String getValue() {
		// TODO Float值的表示
		return String.valueOf(value);
	}

}
